﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNetCSharp
{
    public partial class FuxiType
    {
        void MakePreflopDecision()
        {
            switch (strategy)
            {
                case Strategy.Basic:
                    if (winOdds > 0.78 || //QQ and up
                        winOdds > 0.66 && _handData.NumOppRaisedPreflop <= 1 && _handData.NumFuxiRaisedPreflop == 0 ||
                        winOdds > 0.6 && _handData.NumOppRaisedPreflop == 0 && !_handData.HavePosition ||
                        shouldRaisePreflop && _handData.NumOppRaisedPreflop == 0
                        )
                    {
                        _handData.NumFuxiRaisedPreflop++;
                        ExecuteRaise();
                    }
                    else if (_handData.NumOppRaisedPreflop == 0 && winOdds > 0.39 ||
                        _handData.NumOppRaisedPreflop > 0 && winOdds > 0.42)
                    {
                        ExecuteCall();
                    }
                    else
                    {
                        ExecuteCheck();
                    }
                    break;
                case Strategy.Trap:
                    if (winOdds > 0.66 && winOdds < 0.78 && _handData.NumFuxiRaisedPreflop == 0)
                    {
                        _handData.NumFuxiRaisedPreflop++;
                        ExecuteRaise();
                    }
                    else
                    {
                        ExecuteCall();
                    }
                    break;
                default:
                    break;
            }
        }
    }
}




